import CountIU from '../../components/count'
import {connect} from "react-redux"
import {creatJia,creatJian,creatYiJia} from '../../redux/count_action'
// 传value值
function mapStateToProps(state){
  return {count:state}
}
//方法
function mapDispatchToProps(dispatch){
  return {
    jia:(seValue)=>{
      dispatch(creatJia(seValue))
    },
    jian:(seValue)=>{
      dispatch(creatJian(seValue))
    },
    yiJia:(seValue,time)=>{
      dispatch(creatYiJia(seValue,time))
    }
  }
}
export default connect(mapStateToProps,mapDispatchToProps)(CountIU)
